package com.springboot.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
public class BtTeam {
    @Id
    private String id;
    private String userId;
    private Date createTime;
    private Boolean role;       //项目组织者   0：不是 1：是

    @ManyToOne(fetch= FetchType.LAZY)
    @JoinColumn(name = "demand_id")
    @JsonIgnore
    private BtDemand demand;        //需求
}
